import request from '@/utils/request'
import axios from 'axios'

//歌单分类
export function playlistCatlist() {
    return request({
        url: '/playlist/catlist'
    })
}

//歌单 ( 网友精选碟 )
export function topPlaylist(params) {
    return request({
        url: '/top/playlist',
        params
    })
}

//获取歌单详情
export function playlistDetail(params) {
    return request({
        url: '/playlist/detail',
        params
    })
    // let url = 'http://easy.quarkzhong.top/user/playlist/detail'
    // //使用这个接口，可以获取到歌单的创建者信息
    // return axios.get(url, { params: params })

}

//相关歌单推荐
export function relatedPlaylist(params) {
    return request({
        url: '/related/playlist',
        params
    })
}

//歌单评论
export function commentPlaylist(params) {
    return request({
        url: '/comment/playlist',
        params
    })
}

//收藏歌单
export function subscribePlaylist(params) {
    return request({
        url: '/playlist/subscribe',
        params
    })
}



//获取热门评论
export function getHotComments(params) {
    return request({
        url: '/comment/hot',
        method: 'get',
        params
    })
}